home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -screenplay- / otherstuff / civhackv4 / install < prev    next >
Text File  |  1999-04-20  |  5KB  |  199 lines

  1. ; $VER$: Install script for CivHack v4.01
  2. ; By Alex Furmanski
  3. (set help@installpath
  4.     (cat
  5.         "  Choose a location to install CivHack.  A drawer named CivHack "
  6.         "WILL be created for you.\n\n"
  7.         @askdir-help
  8.     )
  9. )
  10. (set help@svpth
  11.     (cat
  12.         "   This is the path that, by default, CivHack will look for your "
  13.         "saved game files.  Saved games may be loaded from antwhere and "
  14.         "this is provided simply for your convenience."
  15.         "\n   This installer forces you to choose the root of a device as "
  16.         "this is where Civlization saves the games.  You may edit the SAVEPATH "
  17.         "tooltype of the executable to set the default path to any location."
  18.     )
  19. )
  20. (set help@font
  21.     (cat
  22.         "   This is the font that CivHack will use for its GUI.  It will "
  23.         "automatically scale the font to 8 pixels, so you need only to "
  24.         "specify the name as '{fontname}.font'."
  25.         "   If it is not already installed on your system, the default font "
  26.         "(ibm.font) will be copied to your Fonts: assign."
  27.     )
  28. )
  29. (set help@docs
  30.     (cat
  31.         "   The documentation comes in two flavours - AmigaGuide and HTML."
  32.         "\nAmigaGuide docs"
  33.         "\n\n   The information is presented in standard AmigaGuide layout.  You "
  34.         "will need a copy of AmigaGuide or Multiview to read the information. "
  35.         "It contains exactly the same information as the HTML docs."
  36.         "\n\nHTML docs"
  37.         "\n   Here, information is in standard HTML code, with some in-line "
  38.         "images of the GUI to aid explanation.  No Javascript of Java code is "
  39.         "used and you will need an application capable of displaying HTML docs "
  40.         "such as a web browser (recommended) or a basic HTML viewer."
  41.     )
  42. )
  43. (set help@libs
  44.     (cat
  45.         "    These libraries are required by CivHack to open its GUI.  You"
  46.         "\ndo not need to install them if you are running Workbench 2 or"
  47.         "\nhigher as they were included with subsequent releases."
  48.     )
  49. )
  50. (message
  51.    "\n\n You are going to install Civ Hack version 4"
  52.    "\n on your harddisk."
  53.    "\n\n Civ Hack (c)1998 Sheepie Software"
  54.    "\n Written by Alex Furmanski"
  55.    "\n Install script by Alex Furmanski"
  56.    (all)
  57. )
  58. (welcome)
  59. (complete 0)
  60. (set dst
  61.     (askdir
  62.         (prompt "Select a place to install CivHack. A directory named CivHack will be created automatically.")
  63.         (help help@installpath)
  64.         (default "")
  65.     )
  66. )
  67. (complete 5)
  68. (set destdir
  69.     (tackon dst "CivHack")
  70. )
  71. (set docdir
  72.     (tackon destdir "Docs")
  73. )
  74. (makedir destdir
  75.     (infos)
  76. )
  77. (complete 10)
  78. (copyfiles
  79.     (source "Civhack")
  80.     (dest destdir)
  81.     (infos)
  82. )
  83. (complete 15)
  84. (copyfiles
  85.     (source "chk.logo")
  86.     (dest destdir)
  87. )
  88. (complete 20)
  89. (copylib
  90.     (source "libs/gadtools.library")
  91.     (dest "Libs:")
  92.     (prompt "Installing libs...")
  93.     (help help@libs)
  94.     (confirm)
  95. )
  96. (complete 25)
  97. (copylib
  98.     (source "libs/asl.library")
  99.     (dest "Libs:")
  100.     (prompt "Installing libs...")
  101.     (help help@libs)
  102.     (confirm)
  103. )
  104. (complete 30)
  105. (set svpth
  106.     (askdir
  107.         (prompt "Where do you usually keep your saved games?")
  108.         (default "")
  109.         (disk)
  110.         (help help@svpth)
  111.     )
  112. )
  113. (complete 40)
  114. (set fnt
  115.     (askstring
  116.         (prompt "What font do you wish to use?  (Include .font extension)")
  117.         (default "ibm.font")
  118.         (help help@font)
  119.     )
  120. )
  121. (complete 50)
  122. (if (not (exists "Fonts:ibm.font"))
  123.     (copyfiles
  124.         (source "fonts")
  125.         (dest "Fonts:")
  126.         (all)
  127.     )
  128. )
  129. (tooltype
  130.     (dest (tackon destdir "Civhack"))
  131.     (settooltype "SAVEPATH" svpth)
  132.     (settooltype "FONT" fnt)
  133. )
  134. (complete 60)
  135. (set copdocs
  136.     (askbool
  137.         (prompt "Do you wish to install documentation?")
  138.         (help "Make a selection")
  139.     )
  140. )
  141. (complete 70)
  142. (if (= copdocs 1)
  143.     ((set docs
  144.         (askoptions
  145.             (prompt "Install..")
  146.             (choices
  147.                 "AmigaGuide docs"
  148.                 "HTML docs"
  149.             )
  150.             (default 3)
  151.             (help help@docs)
  152.         )
  153.     )
  154.     (complete 80)
  155.     (makedir docdir
  156.         (infos)
  157.     )
  158.     (complete 90)
  159.     (set current 0)
  160.     (while
  161.         (< current 2)
  162.         ((if
  163.             (IN docs current)
  164.     ((copyfiles
  165.         (prompt "Copying the selected documents...")
  166.         (source
  167.             (tackon "docs"
  168.                 (select
  169.                     current
  170.                     "CivHack.guide"
  171.                     "HTML"
  172.                         )
  173.                     )
  174.                 )
  175.                 (dest docdir)
  176.                 (infos)
  177.                 (all)
  178.             )
  179.                 )
  180.             )
  181.             (set current (+ current 1))
  182.         )
  183.     )
  184. )
  185.  
  186. )
  187. (complete 100)
  188. (exit
  189.    "\n\n Civ Hack and documentation have been successfully installed."
  190.    "\n Civ Hack can be found in " destdir ","
  191.    "\n and the docs are in " docdir "."
  192.    "\n\n If you like Civhack v4, then why not drop me a line."
  193.    "\n All gifts, suggestions and bug reports gratefully received,"
  194.    "\n plus you'll probably make my day."
  195.    "\n\n For more info on contacting me plus the instructions,"
  196.    "\n see the documentation!  Thank you."
  197.    "\n\n                        Alex Furmanski"
  198.    (quiet)
  199. )